package com.android.clinic.app.ui.doctor;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.android.clinic.app.R;
import com.android.clinic.app.base.BaseActivity;
import com.android.clinic.app.entity.NoticeInfo;
import com.android.clinic.app.utils.Utils;

/**
 * 医生消息
 * Created by xiaming on 2018/8/12.
 */

public class DoctorMessageActivity extends BaseActivity {

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_system_message;
    }

    @Override
    protected void initView(@Nullable Bundle savedInstanceState) {
        setTitleBarTitle("医生消息");
        setTitleBarLeftResource(R.drawable.icon_back);

        TextView tvTime = (TextView) findViewById(R.id.tv_time);
        TextView tvMessage = (TextView) findViewById(R.id.tv_message);

        NoticeInfo noticeInfo = (NoticeInfo) this.getIntent().getSerializableExtra("message");

        tvTime.setText(Utils.getFormatTime(noticeInfo.getCreateTime()));
        tvMessage.setText(noticeInfo.getContent());

    }
}
